package 第5章多线程编程作业.Work1.Work5;

public class TestaTicket {
    static boolean flag=false;
    public static void main(String[] args) {

        Ticket t=new Ticket();
        Thread t1=new Thread(t,"小黄牛");
        Thread t2=new Thread(t,"逃跑跑");
        Thread t3=new Thread(t,"抢票代理");
        t1.start();
        t2.start();
        t3.start();
    }
}
